import styled from "styled-components";
import {DarkFontColor, LightFontColor} from "@/style/Color";

export const UnderContainer = styled.div`
  width: 100%;
  height: 20px;
  float: left;
  color: ${DarkFontColor};
  font-size: 12px;

  span {
    margin-right: 15px;
  }
`
export const TextContainer = styled.div`
  box-sizing: border-box;
  height: calc(100% + 1px);
  float: left;
  width: 100%;
  padding: 27% 5px 5px 5px;
  background: rgb(0, 0, 0, 0) linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 44.79%, rgba(0, 0, 0, 0.35) 63.54%, #000000 100%);
  transition: background-color .5s;

  :hover {
    //background: -webkit-gradient(linear, left top, left bottom, from(rgba(18, 18, 19, 0)), to(#000));
    background: rgb(0, 0, 0, 0.3) linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 44.79%, rgba(0, 0, 0, 0.35) 63.54%, #000000 100%);
  }

  .title {
    :link {
      color: ${LightFontColor};
    }

    :visited {
      color: ${LightFontColor};
    }

    :active {
      color: ${LightFontColor};
    }

    :hover {
      color: ${LightFontColor};
      text-decoration: underline;
    }

    color: ${LightFontColor};
    cursor: pointer;
    vertical-align: baseline;
    float: left;
    width: 100%;
    font-size: 15px;
    height: 20px;
    line-height: 20px;
    text-align: left;
    font-weight: 700;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .content {
    width: 100%;
    color: #999;
    line-height: 22px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
`

export const NewsListItem = styled.li`
  width: 100%;
  height: 140px;
  word-wrap: break-word;
  margin-bottom: 15px;
  //position: relative;
  background-image: url(${props => props.image});
  background-position: center;
  background-size: 100% 100%;
  transition: border-color 2s;

  &:hover {
    box-shadow: 0 34px 20px -24px rgb(0 0 0);
  }
`
export const PictureContainer = styled.div`
  width: 40%;
  max-width: 160px;
  float: left;
  height: 100%;
  margin-right: 5px;
  //position: absolute;
  margin-left: 10px;

  .img {
    cursor: pointer;
    border-radius: 3px;
    width: 148px;
    height: 98px;
  }
`
